<%
layout("/layout.html"){
%>
<div id=nav>
    <a href="https://git.oschina.net/xiandafu/eval"><h1>评级</h1></a>

    <ul>


    </ul>
    <ul>
        <li><a class=active href="${ctxPath}/001.html">简单求和</a>
        <li><a href="${ctxPath}/002.html">脚本运行</a>
        <li><a href="${ctxPath}/003.html">决策树</a>
    </ul>
</div>

<article>
    <h2>答题</h2>
    <h5>使用方法:直接运行或者修改模型后运行</h5>
    
    <form id="inputForm" name="inputForm">
        <textarea id="code" name="code">
<?xml version="1.0" encoding="UTF-8"?>
<workspace name="评级">
    <project name="卫生评级">
        <doc name="评级得分" f="sum">
            <node name="变量定义列表" f="block">
                  <!-- yes or no  -->
                  <node name="等级列表">{"yes":5,"no":1}</node>
            </node>
            <node name="题目一">lookup(答案1,等级列表) </node>   
            <node name="题目二">lookup(答案2,等级列表) </node>  
        </doc>
    </project>
</workspace>
</textarea>
<div>
            变量名称1:<input name="paraName0" value="答案1"> 值:<input
                name="paraValue0" value="yes">
        </div>
        <div>
            变量名称2:<input name="paraName1" value="答案2"> 值:<input
                name="paraValue1" value="no">
        </div>
        <div>
            变量名称3:<input name="paraName2" value=""> 值:<input
                name="paraValue2" value="">
        </div>
        <div>
            变量名称4:<input name="paraName3" value=""> 值:<input
                name="paraValue3" value="">
        </div>
        <div>
            变量名称5:<input name="paraName4" value=""> 值:<input
                name="paraValue4" value="">
        </div>
        <button type="button" id="run">计算结果</button>
         <button type="button" id="validate">语法校验</button>
        <input id="result" name="result" readonly value="">

    </form>
<%}%>
